<!doctype html>
<html lang="zh-CH">
<head>
    <meta charset="UTF-8">
    <title>EVE - 贸易收入计算器</title>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <link rel="stylesheet" href="/static/tool/eve/trade/index.css">
</head>
<body>
<div class="main">
    <div class="form">
        <div class="input-box layui-form">
            <input type="text" class="eve-input" name="buy_price" placeholder="买入单价">
            <input type="text" class="eve-input" name="sale_price" placeholder="卖出单价">
            <input type="text" class="eve-input" name="count" placeholder="数量">
            <input type="text" class="eve-input" name="tax_rate" placeholder="税率(%)">

            <button class="calculate" lay-submit lay-filter="calc">计算</button>
        </div>
        <div class="value-box">
            <div class="item-box">
                <h3>单个</h3>
                <div class="one"></div>
            </div>
            <div class="item-box">
                <h3>全部</h3>
                <div class="all"></div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="/layui/layui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/6.6.1/math.min.js"></script>
<script src="/static/tool/eve/trade/index.js"></script>
<script type="text/html" id="value">
    <p>
        <span>买入价: @{{ d.buy.price }}</span>
        <span>扣税: @{{ d.buy.taxes }}</span>
        <span>成本: @{{ d.buy.cost }}</span>
    </p>
    <p>
        <span>卖出价: @{{ d.sale.price }}</span>
        <span>扣税: @{{ d.sale.taxes }}</span>
        <span>收入: @{{ d.sale.income }}</span>
    </p>
    <p class="bold">利润: @{{ d.profit }}</p>
</script>
</html>
